home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
- Subject: Re: Access carry flag from C
- Date: 28 Feb 1996 16:10:41 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb28091041@qcd.lanl.gov>
- References: <Dn1C9z.DGv.0.net@indra.com> <ARTHUR.96Feb20143404@gold.Smallworld.co.uk>
- <824853272snz@genesis.demon.co.uk> <4gqj0d$d6p@airdmhor.gen.nz>
- <825377932snz@genesis.demon.co.uk>
- <slrn4j7v4c.l00.srkumar@shell.monmouth.com>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: srkumar@shell.monmouth.com's message of 28 Feb 1996 06:56:12 GMT
-
- In article <slrn4j7v4c.l00.srkumar@shell.monmouth.com>
- srkumar@shell.monmouth.com (Senthil Kumar) writes:
- <snip>
- SK: On Mon, 26 Feb 96 23:38:52 GMT,
- SK: Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- SK:
- SK: > No, given:
- SK: >
- SK: > (expr1) ? expr2 : (expr3)
- SK: >
- SK: > [...]
- SK: >
- SK: > You probably noticed that I didn't put parentheses around expr2. Can you
- SK: > see why they are necessary around expr1 and expr3 but not here?
- (This does
- SK: > test understanding of expression parsing quite deeply).
- SK: >
- SK:
- SK: Can anyone explain this?
-
- One understands better by thinking than by having things explained :-)
-
- Can you think of some `expr2' such that putting a parantheses around
- it in the above expression would make a difference? Can you think of
- some `expr1' and some `expr3' where deleteing the parentheses would
- make a difference? Can you now see what was being said?
-
- Of course, if you are asking how this tests the understanding of
- expression parsing quite deeply, I don;t have an answer :-)
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-